<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse;font-size: 14px;width: 1000px;margin: auto}
        table,th,td{border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<div style="text-align: center">
    <span style="color: darkslategray;font-size: 30px">欢迎<span style="color: darkslategray;font-size: 30px">[[${session.username}]]</span>光临</span>
    <span><a th:href="@{/user/logins}">退出</a></span>
    <hr/>
    <br>
    <form th:action="@{/user/findUserEtc1}" method="post">
        <th>车牌号：</th>
        <input type="text" name="carid" th:value="${carid}"/>
        ETC卡号：
        <input type="text" name="etcid" th:value="${etcid}"/>
        <input type="submit" value="确定"/>

    <table class="list">
        <tr>
            <th>id</th>
            <th>车牌号</th>
            <th>ETC卡号</th>
            <th>余额</th>
            <th>名字</th>
            <th>使用年限</th>
            <th colspan="2">操作</th>
        </tr>
        <tr th:each="user : ${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.carid}"></td>
            <td th:text="${user.etcid}"></td>
            <td th:text="${user.balance}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${#dates.format(user.dateyear,'yyyy-MM-dd')}"></td>
            <td><a><button value="提醒">提醒</button></a></td>

        </tr>
    </table>
    </form>
</div>
</body>
</html>